/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package nl.rainbowsheep.reisorg.rest.service.service;

import nl.rainbowsheep.reisorg.rest.service.model.BurritoRole;
import nl.rainbowsheep.reisorg.rest.service.repository.RoleRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author ieme
 */
@Service
public class RoleService {
    
    @Autowired
    private RoleRepository roleRepository;
    
    public BurritoRole findByName(String name) {
        return roleRepository.findByBurritoRole(name);
    }

}
